# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-common-sense
pkgver=3.74
pkgrel=3
pkgdesc="Implements some sane defaults for Perl programs"
arch=('any')
url="http://search.cpan.org/dist/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
md5sums=('35b273147200c4c95eef7816f83e572d')

build() {
  cd common-sense-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd common-sense-$pkgver
  make test
}

package() {
  cd common-sense-$pkgver
  make DESTDIR="$pkgdir" install
}
